<template>
  <div class="home">
    <MdEditor :value="content" :handle-change="onchange"></MdEditor>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import MdEditor from "@/components/MdEditor.vue";
const content = ref();
const onchange = (val: string) => {
  content.value = val;
};
// export default defineComponent({
//   name: "HomeView",
//   components: {
//     MdEditor,
//   },
// });
</script>
